home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Panel Editor / Source / UndoPE.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-08  |  610 b   |  47 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        UndoPE.h
  3.  
  4.     Contains:    Undo class implementation
  5.  
  6.     Written by:    Steve Smith
  7.     
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #ifndef _UNDOPE_
  12. #define _UNDOPE_
  13.  
  14. // -- Compiler/Preprocessor Switches --
  15.  
  16. #ifndef _COMPILERDEFS_
  17. #include "CompDefs.h"
  18. #endif
  19.  
  20. // -- OpenDoc Includes --
  21.  
  22. #ifndef _ODTYPES_
  23. #include <ODTypes.h>
  24. #endif
  25.  
  26. class CList;
  27.  
  28. class CUndo {
  29.     
  30.     public:
  31.     
  32.     CUndo();
  33.     virtual ~CUndo();
  34.     
  35.     void        SetType(ODUShort type);
  36.     ODUShort    GetType();
  37.     void        SetSelection(CList* selection);
  38.     CList*        GetSelection();
  39.  
  40.     protected:
  41.     
  42.     CList*        fSelection;
  43.     ODUShort    fType;
  44. };
  45.  
  46.  
  47. #endif